package com.example.springbootswagger.controller;

import com.example.springbootswagger.pojo.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 墨苍璃
 * @date 2022年01月14日00时22分
 */

@RestController
public class HelloController {

    @GetMapping("/hello")
    public String hello() {
        return "hello swageer!!";
    }

    @GetMapping("/getUser")
    public User getUser() {
        return new User();
    }

}
